package com.demo.service;

import com.demo.dto.DepartmentDTO;
import com.demo.entity.SysUser;
import com.demo.model.UserVO;
import com.github.pagehelper.PageInfo;

import java.util.Collection;
import java.util.List;

public interface SysUserService {


    SysUser getByLoginName(String loginName);
    SysUser getByUserId(String userId);
    int add(SysUser user);
    int password(String loginName,String loginPass);
    PageInfo<SysUser> list( int pageIndex,int pageSize);

    PageInfo<SysUser> listDep(int pageIndex,int pageSize,String depId);
    List<SysUser> listDepUser(String depId);
    int update(SysUser user);
    int remove(String loginName);
    int confirmLoginName(String loginName,String telephone ,String dingDing );

    SysUser findFromUserID(String userId);

    Collection<UserVO> findDepartmentUser();

    List<DepartmentDTO> findDepartmentUserList();

    int backUser(String userId);
    String pass(String loginName);
    int roleId(String userId,String roleId);

    List<SysUser> findAllSystemUser();
    SysUser findUserById(String userId);

    List<SysUser> findAllLeader();
}